$gwx_XC_28=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){
if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};
}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};
var e_={}
if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys;
var d_={}
if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines;
var f_={}
if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {};
var p_={}
__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {}
__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {};
__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {};
var z=__WXML_GLOBAL__.ops_set.$gwx_XC_28 || [];
function gz$gwx_XC_28_1(){
if( __WXML_GLOBAL__.ops_cached.$gwx_XC_28_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_28_1
__WXML_GLOBAL__.ops_cached.$gwx_XC_28_1=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([1,true])
Z([[7],[3,'color']])
Z([[7],[3,'title']])
Z([[7],[3,'waiting']])
Z([[2,'!'],[[7],[3,'waiting']]])
Z([3,'myOrder'])
Z([[7],[3,'list']])
Z([3,'index'])
Z([3,'order-one'])
Z([[2,'=='],[[6],[[7],[3,'item']],[3,'order_type']],[1,1]])
Z([[2,'!='],[[6],[[6],[[7],[3,'item']],[3,'refund_remarks']],[3,'length']],[1,0]])
Z([3,'order-btns'])
Z([[2,'&&'],[[2,'&&'],[[2,'=='],[[6],[[7],[3,'item']],[3,'refund']],[1,1000]],[[2,'!=='],[[6],[[7],[3,'item']],[3,'state_number']],[1,1]]],[[2,'!='],[[6],[[7],[3,'item']],[3,'is_auto_refund']],[1,1]]])
Z([[2,'=='],[[6],[[7],[3,'item']],[3,'is_refund']],[1,0]])
Z([[2,'!='],[[6],[[7],[3,'item']],[3,'is_refund']],[1,0]])
Z([[2,'&&'],[[2,'!='],[[6],[[7],[3,'item']],[3,'is_refund']],[1,1]],[[2,'!='],[[6],[[7],[3,'item']],[3,'state_number']],[1,1]]])
Z([[2,'=='],[[6],[[7],[3,'item']],[3,'order_type']],[1,2]])
Z([[2,'=='],[[6],[[7],[3,'item']],[3,'order_type']],[1,1]])
Z([[2,'&&'],[[2,'&&'],[[2,'=='],[[6],[[7],[3,'item']],[3,'order_type']],[1,2]],[[2,'!='],[[6],[[7],[3,'item']],[3,'state_number']],[1,1]]],[[2,'=='],[[6],[[7],[3,'item']],[3,'can_finish']],[1,1]]])
Z([[2,'&&'],[[2,'!='],[[6],[[7],[3,'item']],[3,'is_comment']],[1,1]],[[2,'=='],[[6],[[7],[3,'item']],[3,'state_number']],[1,2]]])
Z([[7],[3,'empty']])
Z([[2,'&&'],[[2,'&&'],[[2,'!'],[[7],[3,'hasMore']]],[[2,'!'],[[7],[3,'empty']]]],[[2,'!'],[[7],[3,'load']]]])
Z([[2,'&&'],[[7],[3,'load']],[[2,'!'],[[7],[3,'empty']]]])
})(__WXML_GLOBAL__.ops_cached.$gwx_XC_28_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_28_1
}
__WXML_GLOBAL__.ops_set.$gwx_XC_28=z;
__WXML_GLOBAL__.ops_init.$gwx_XC_28=true;
var x=['./pages/myOrder/myOrder.wxml'];d_[x[0]]={}
var m0=function(e,s,r,gg){
var z=gz$gwx_XC_28_1()
var hUH=_mz(z,'navigation-bar',['back',0,'color',1,'title',1],[],e,s,gg)
_(r,hUH)
var oVH=_n('waiting-pop')
_rz(z,oVH,'waiting',3,e,s,gg)
_(r,oVH)
var cTH=_v()
_(r,cTH)
if(_oz(z,4,e,s,gg)){cTH.wxVkey=1
var cWH=_n('view')
_rz(z,cWH,'class',5,e,s,gg)
var t1H=_v()
_(cWH,t1H)
var e2H=function(o4H,b3H,x5H,gg){
var f7H=_n('view')
_rz(z,f7H,'class',8,o4H,b3H,gg)
var c8H=_v()
_(f7H,c8H)
if(_oz(z,9,o4H,b3H,gg)){c8H.wxVkey=1
}
var h9H=_v()
_(f7H,h9H)
if(_oz(z,10,o4H,b3H,gg)){h9H.wxVkey=1
}
var o0H=_n('view')
_rz(z,o0H,'class',11,o4H,b3H,gg)
var cAI=_v()
_(o0H,cAI)
if(_oz(z,12,o4H,b3H,gg)){cAI.wxVkey=1
var tEI=_n('view')
var eFI=_v()
_(tEI,eFI)
if(_oz(z,13,o4H,b3H,gg)){eFI.wxVkey=1
}
var bGI=_v()
_(tEI,bGI)
if(_oz(z,14,o4H,b3H,gg)){bGI.wxVkey=1
}
eFI.wxXCkey=1
bGI.wxXCkey=1
_(cAI,tEI)
}
var oBI=_v()
_(o0H,oBI)
if(_oz(z,15,o4H,b3H,gg)){oBI.wxVkey=1
var oHI=_v()
_(oBI,oHI)
if(_oz(z,16,o4H,b3H,gg)){oHI.wxVkey=1
}
var xII=_v()
_(oBI,xII)
if(_oz(z,17,o4H,b3H,gg)){xII.wxVkey=1
}
oHI.wxXCkey=1
xII.wxXCkey=1
}
var lCI=_v()
_(o0H,lCI)
if(_oz(z,18,o4H,b3H,gg)){lCI.wxVkey=1
}
var aDI=_v()
_(o0H,aDI)
if(_oz(z,19,o4H,b3H,gg)){aDI.wxVkey=1
}
cAI.wxXCkey=1
oBI.wxXCkey=1
lCI.wxXCkey=1
aDI.wxXCkey=1
_(f7H,o0H)
c8H.wxXCkey=1
h9H.wxXCkey=1
_(x5H,f7H)
return x5H
}
t1H.wxXCkey=2
_2z(z,6,e2H,e,s,gg,t1H,'item','index','index')
var oXH=_v()
_(cWH,oXH)
if(_oz(z,20,e,s,gg)){oXH.wxVkey=1
}
var lYH=_v()
_(cWH,lYH)
if(_oz(z,21,e,s,gg)){lYH.wxVkey=1
}
var aZH=_v()
_(cWH,aZH)
if(_oz(z,22,e,s,gg)){aZH.wxVkey=1
}
oXH.wxXCkey=1
lYH.wxXCkey=1
aZH.wxXCkey=1
_(cTH,cWH)
}
cTH.wxXCkey=1
return r
}
e_[x[0]]=e_[x[0]]||{f:m0,j:[],i:[],ti:[],ic:[]}
if(path&&e_[path]){
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
;g="$gwx_XC_28";var main=e_[path].f
if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1);
try{
main(env,{},root,global);
_tsd(root)
}catch(err){
console.log(err)
}
;g="";
return root;
}
}
}
}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_28();	if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/myOrder/myOrder.wxml'] = [$gwx_XC_28, './pages/myOrder/myOrder.wxml'];else __wxAppCode__['pages/myOrder/myOrder.wxml'] = $gwx_XC_28( './pages/myOrder/myOrder.wxml' );
	;__wxRoute = "pages/myOrder/myOrder";__wxRouteBegin = true;__wxAppCurrentFile__="pages/myOrder/myOrder.js";define("pages/myOrder/myOrder.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){
"use strict";var a=getApp(),e=require("../../utils/util.js"),t=1;Page({data:{title:"我的订单",color:"#FFFFFF",waiting:!0,list:[],empty:"",hasMore:"",load:"",canback:!1},onLoad:function(a){this.setData({waiting:!0}),e.isExitsVariable(a.canback)&&this.setData({canback:a.canback})},onShow:function(){t=1,this.getOrderList()},onPullDownRefresh:function(){t=1,this.getOrderList()},onReachBottom:function(){if(!this.data.hasMore)return!1;t++,this.getOrderList()},getOrderList:function(){var e=this;e.setData({load:!0}),a.ajax({url:"User/Order/orderList",data:{page:t,row:10},success:function(a){var r=!1,n=!0,o=e.data.list,i=e.data.list;0!=a.data.count?(o=1==t?a.data.data:i.concat(a.data.data),n=t<a.data.allPage):(1==t&&(r=!0,o=[]),n=!1),e.setData({load:!1,empty:r,hasMore:n,list:o,waiting:!1}),wx.stopPullDownRefresh()}})},applyRefund:function(e){var t=e.currentTarget.dataset.order_id,r=e.currentTarget.dataset.number;a.showModal("申请退款","是否确认申请退款-订单"+r,(function(){wx.navigateTo({url:"../applyRefund/applyRefund?order_id="+t})}),(function(){}))},goRefundDetail:function(a){var e=a.currentTarget.dataset.order_id;wx.navigateTo({url:"../refundDetail/refundDetail?order_id="+e+"&backone=1"})},goCharging:function(a){var e=a.currentTarget.dataset.device_id;wx.navigateTo({url:"../charging/charging?device_id="+e})},checkBluetooth:function(){var a=wx.getSystemInfoSync();return!(!a.bluetoothEnabled||!a.locationEnabled)},anewOpen:e.debounce((function(a){this.getDeviceInfo(a)}),1e3),getDeviceInfo:function(e){var t=this,r=e.currentTarget.dataset.order_id;a.ajax({url:"User/Order/deviceInfo",data:{order_id:r},success:function(e){if(1e3==e.data.code){var n=e.data.data,o=n.mainboard_type_id;if(1==n.pay_state)if(3==o){if(!t.checkBluetooth())return void a.showToast("请打开蓝牙与GPS~");t.openBlueAgain(r)}else t.openAgain(r);else a.showToast("该订单未完成，请购买哦~")}else a.showToast(e.data.msg)}})},openAgain:function(e){a.ajax({url:"User/Order/againOpenDoor",data:{order_id:e},success:function(t){if(1e3==t.data.code){var r="../openArking/openArking?order_id="+e+"&o_backs="+!1;wx.navigateTo({url:r})}else a.showToast(t.data.msg)}})},openBlueAgain:function(a){var e="../openArking/openArking?order_id="+a+"&o_backs="+!1;wx.navigateTo({url:e})},deleteOrder:function(e){var r=this,n=e.currentTarget.dataset.order_id,o=e.currentTarget.dataset.number;a.showModal("删除订单","是否确认删除-订单"+o,(function(){a.ajax({url:"User/Order/delOrder",data:{order_id:n},success:function(e){a.showToast(e.data.msg),1e3==e.data.code&&(t=1,r.getOrderList())}})}),(function(){}))},skipAddComment:function(a){var e=a.currentTarget.dataset,t=e.order_id,r=e.product_id;wx.navigateTo({url:"/pages/comment/addComment/addComment?order_id=".concat(t,"&product_id=").concat(r)})},endCharing:function(e){var t=this,r={device_id:e.currentTarget.dataset.device_id,version:2};a.ajax({url:"User/Charger/before_finish",data:r,success:function(e){1e3==e.data.code?wx.showModal({title:"可退款金额",content:e.data.data.price+"元",showCancel:!0,cancelText:"我再想想",cancelColor:"#000000",confirmText:"确认结束",confirmColor:"#546993",success:function(a){t.getfinish(r)}}):a.showToast(e.data.msg)}})},getfinish:function(e){var t=this;a.ajax({url:"User/Charger/finish",data:e,success:function(e){1e3==e.data.code?wx.showModal({title:"退款成功",content:e.data.msg,showCancel:!1,confirmText:"确认",confirmColor:"#546993",success:function(a){a.confirm&&t.getOrderList()}}):a.showToast(e.data.msg)}})}});
},{isPage:true,isComponent:true,currentFile:'pages/myOrder/myOrder.js'});require("pages/myOrder/myOrder.js");